// 封装banner轮播图相关业务代码

import { ref } from 'vue'
import { homeGetBannerAPI } from '@/apis/home'

export const useBanner = () => {
  const bannerList = ref([])

  const getBanner = async () => {
    const res = await homeGetBannerAPI({
      distributionSite: '2'
    })
    bannerList.value = res.result
  }

  getBanner()

  return { bannerList }
}
